@import "~bpmn-js/dist/assets/bpmn-js.css";
@import "~bpmn-js/dist/assets/diagram-js.css";

.my-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flowMsgPopover {
  display: none;
}

.tipBox {
  width: 180px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ebeef5;
  padding: 12px;

  p{
    line-height: 28px;
    margin:0;
    padding:0;
  }
}

.cell-item {
  display: flex;
  align-items: center;
}

// 隐藏右下角的 bpmn.io logo
//.bjs-powered-by {
//  display: none;
//}

.view-mode {
  .el-header, .el-aside, .djs-palette, .bjs-powered-by {
    display: none;
  }

  .el-loading-mask {
    background-color: initial;
  }

  .el-loading-spinner {
    display: none;
  }
}

.containers {
  width: 100%;
  height: 100%;

  .canvas {
    width: 100%;
    height: 100%;
    //background: url("")
  }

  .panel {
    position: absolute;
    right: 0;
    top: 50px;
    width: 300px;
  }

  .load {
    margin-right: 10px;
  }

  .djs-palette {
    left: 0px !important;
    top: 0px;
    border-top: none;
  }

  //.djs-container svg {
  //  min-height: 650px;
  //}

  .overlays-div {
    font-size: 10px;
    color: red;
    width: 100px;
    top: -20px !important;
  }

  .flow-viewer {
    position: relative;
    padding: 0;
  }

  .flow-viewer .button-group {
    display: flex;
    position: absolute;
    width: auto;
    height: auto;
    top: 10px;
    right: 10px;
  }

  // 节点点击后样式
  .djs-selection-outline {
    stroke: #4ea84e !important;
    stroke-width: 1px;
  }

  .djs-element.selected .djs-outline {
    visibility: visible;
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 500;
    animation: 0.8s linear 0s infinite normal none running draw;
    stroke: #4ea84e !important;
    stroke-width: 1px;
  }

  // 已办节点
  .highlight.djs-shape .djs-visual > :nth-child(1) {
    fill: #56bb56 !important;
    stroke: #56bb56 !important;
    fill-opacity: 0.2 !important;
  }

  .highlight.djs-shape .djs-visual > :nth-child(2) {
    fill: #56bb56 !important;
  }

  .highlight.djs-shape .djs-visual > path {
    fill: #56bb56 !important;
    fill-opacity: 0.2 !important;
    stroke: #56bb56 !important;
  }

  .highlight.djs-connection > .djs-visual > path {
    stroke: #56bb56 !important;
  }

  // 事件节点
  .highlight-event.djs-shape .djs-visual > :nth-child(1) {
    fill: #56bb56 !important;
    stroke: #56bb56 !important;
    fill-opacity: 0.2 !important;
  }

  .highlight-event.djs-shape .djs-visual > :nth-child(2) {
    stroke: #56bb56 !important;
    fill: #56BB5626 !important;
  }

  .highlight-event.djs-shape .djs-visual > :nth-child(3) {
    stroke: #56bb56 !important;
    fill: #56BB5626 !important;
  }

  .highlight-event.djs-shape .djs-visual > path {
    fill: #56bb56 !important;
    fill-opacity: 0.2 !important;
    stroke: #56bb56 !important;
  }

  .highlight-event.djs-connection > .djs-visual > path {
    stroke: #56bb56 !important;
  }

  .highlight-event-todo.djs-connection > .djs-visual > path {
    stroke: #eab24a !important;
    stroke-dasharray: 4px !important;
    fill-opacity: 0.2 !important;
  }

  .highlight-event-todo.djs-shape .djs-visual > :nth-child(1) {
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 500;
    animation: 0.8s linear 0s infinite normal none running draw;
    stroke: #eab24a !important;
    fill: rgba(252, 211, 127, 0.2) !important;
  }

  .highlight-event-todo.djs-shape .djs-visual > :nth-child(2) {
    stroke: #eab24a !important;
  }

  .highlight-event-todo.djs-shape .djs-visual > :nth-child(3) {
    stroke: #eab24a !important;
    fill: #EAB24A7F !important;
  }

  .highlight-todo.djs-connection > .djs-visual > path {
    stroke: #eab24a !important;
    stroke-dasharray: 4px !important;
    fill-opacity: 0.2 !important;
  }

  .highlight-todo.djs-shape .djs-visual > :nth-child(1) {
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 500;
    animation: 0.8s linear 0s infinite normal none running draw;
    stroke: #eab24a !important;
    fill: rgba(252, 211, 127, 0.2) !important;
  }

  // 外边框虚线,背景色
  .highlight-hover.djs-connection > .djs-visual > path {
    stroke: #4ea84e !important;
    stroke-dasharray: 4px !important;
    fill-opacity: 0.2 !important;
    cursor: pointer;
  }

  .highlight-hover.djs-shape .djs-visual > :nth-child(1) {
    cursor: pointer;
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 500;
    animation: 0.8s linear 0s infinite normal none running draw;
    stroke: #4ea84e !important;
    fill: rgba(78, 168, 78, 0.2) !important;
  }

  // 聚焦后外边框虚线
  //.highlight-hover.djs-element.hover .djs-outline {
  //  visibility: visible;
  //  stroke-dasharray: 5, 5;
  //  stroke-dashoffset: 500;
  //  animation: 0.8s linear 0s infinite normal none running draw;
  //  stroke: #48a4f7 !important;
  //  stroke-width: 1px;
  //}

  @keyframes draw {
    100% {
      stroke-dashoffset: 0;
    }
  }

  .process-status {
    position: absolute;
    width: auto;
    height: auto;

    display: flex;
    float: right;
    top: 10px;
    left: 10px;
    font-size: 12px;

    .intro {
      color: #303133;
      margin-top: 5px;
    }

    .finish {
      background-color: #E8FFEA;
      padding: 4px;
      border: 1px solid rgba(0, 180, 42, 0.1);
      border-radius: 3px;
      color: #56bb56;
      margin-right: 8px;
    }

    .processing {
      background-color: #fcf5ea;
      padding: 4px;
      border: 1px dashed #fce9c7;
      border-radius: 3px;
      color: #eab24a;
      margin-right: 8px;
    }

    .todo {
      padding: 4px;
      background: #ECEDEE;
      border: 1px solid rgba(204, 204, 204, 0.1);
      border-radius: 3px;
      color: #666666;
      margin-right: 5px;
    }

    .checked {
      padding: 4px;
      background: #fcc7c7;
      border: 1px solid rgb(250, 176, 176);
      border-radius: 3px;
      color: #d93434;
      margin-right: 5px;
    }
  }
}
